import wx

class MyFrame(wx.Frame):
    def __init__(self,parent,id,title):
        wx.Frame.__init__(self, parent, id, title, wx.DefaultPosition, wx.Size(250,270))
        # create panel
        panel = wx.Panel(self,-1,(75,20),(100,127), style=wx.SUNKEN_BORDER)
        self.picture=wx.StaticBitmap(panel)
        panel.SetBackgroundColour(wx.BLACK)
        self.picture.SetFocus()
        self.picture.SetBitmap(wx.Bitmap('./image/img.bmp'))

"""
    def closeWindow(self, event):
        self.Close()
    def OnSelect(self,event):
        self.picture.SetFocus()
        self.picture.SetBitmap(wx.Bitmap('image/img.png'))
"""
class MyApp(wx.App):
    def OnInit(self):
        myframe = MyFrame(None, -1, "test")
        myframe.CenterOnScreen()



        StatusBar = myframe.CreateStatusBar()
        StatusBar.SetStatusText('StatusBar')

        MenuBar = wx.MenuBar()
        menu = wx.Menu()
        menu.Append(wx.ID_EXIT, 'E&xit\tAlt-X', 'exit')
        MenuBar.Append(menu, '&file')
        menu1 = wx.Menu()
        menu1.Append(200, 'Test', 'test')
        menu1.Append(201, 'Copy', 'copy')
        menu1.Append(202, 'Paste', 'paste')
        MenuBar.Append(menu1, '&edit')
        myframe.SetMenuBar(MenuBar)

        myframe.Show(True)
        return True
app = MyApp(0)
app.MainLoop()